﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddSensor.aspx.cs" Inherits="SensorNetworkUI.AddUser" %>
<%@ Register assembly="WebEdition" namespace="ThinkGeo.MapSuite.WebEdition" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script>
        function showMap(textBoxID) {
            $('#dialog').dialog('open');
        }

</script>
    <h2>Sensor</h2><h3>
 <p>Name of the Sensor:
     <asp:DropDownList ID="DropDownList1" runat="server" 
         DataSourceID="SqlDataSource1" DataTextField="sensor_name" 
         DataValueField="sensor_id">
     </asp:DropDownList>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
         ConnectionString="<%$ ConnectionStrings:sensorsConnectionString %>" 
         SelectCommand="SELECT [sensor_id], [sensor_name] FROM [sensor]">
     </asp:SqlDataSource>
    </p>
 
<p>Location
    <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True" 
        ontextchanged="TextBox2_TextChanged" ></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
    </p>
</h3>
   
      <p><img src="images/0171_new_page.png" alt="" width="12" height="12" /> 
        <a href="http://www.cs.rit.edu">The Department of Computer Science </a>  has accepted my proposal and the committee. I have registered for the project and will most probably be defending it this quarter or the next...</p>
      <p><img src="images/0170_bubble.png" alt="" width="12" height="12" />
	  <a href="mailto:grr4505@rit.edu">Mail a Comment</a> | <a href="#" id = "dialog_link">More Info</a></p><br />

      

      

<div id="dialog" title="Choose Your Position">
 <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
      <cc1:Map ID="Map1" runat="server" height="480px" width="640px">
</cc1:Map>
   
		</div>

</asp:Content>
